var windowName = "shopTag";
var Page;
apiready = function(){
    onWindowShow(function () {
        console.log(windowName + " show")
    })
    onWindowHide(function () {
        console.log(windowName + " hide")
    })
    console.log("index page is OK");
    Page = createVM("#Page",{
        cats: []
        , cat1: "0"
        , catName1: "家庭保洁"
        , cat2: "0"
        , catName2: "厨房清扫"
    },{
        //页面方法
        "init":function () {
            this.cats = getLocData("cacheCats")
        }

        ,setCat1:function (index) {
            this.cat1 = index
        }
        ,setCat2:function (index) {
            this.cat2 = this.cat1 + "_" + index
        }

        ,select:function (index) {
            switch (index) {
                case 1://设置主营行业
            }
        }
    })
    Page.init()
}